Re: CURSORs and selects with parameters - Mailing list pgsql-general

From Dan Sugalski
Subject Re: CURSORs and selects with parameters
Date
Msg-id a06210206be3803ced192@[172.24.18.155]
Whole thread Raw
In response to Re: CURSORs and selects with parameters  (Michael Fuhr <mike@fuhr.org>)
Responses Schema comparison tool
List pgsql-general
At 12:50 PM -0700 2/15/05, Michael Fuhr wrote:
>On Tue, Feb 15, 2005 at 02:32:56PM -0500, Dan Sugalski wrote:
>>
>>  I've got some code that uses PQexecParams and does the equivalent of:
>>
>>     DECLARE a_cursor CURSOR FOR SELECT foo, bar FROM baz WHERE field = $1
>>     FETCH NEXT a_cursor
>>
>>  but when I get to the FETCH I'm getting back the error:
>>
>>     ERROR:  no value found for parameter 1
>
>What version of PostgreSQL are you using?

I'm using 7.4.5.

>  I think this is fixed
>in 8.0.
>
>http://archives.postgresql.org/pgsql-general/2005-01/msg00812.php

D'oh! Missed that one in the search. Time to find some upgrade
packages, then. Thanks.
--
                Dan

--------------------------------------it's like this-------------------
Dan Sugalski                          even samurai
dan@sidhe.org                         have teddy bears and even
                                       teddy bears get drunk

pgsql-general by date:

Previous
From: Michael Fuhr
Date:
Subject: Re: CURSORs and selects with parameters
Next
From: Christopher Browne
Date:
Subject: Re: Slony uninstall info/warning